home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Archive / Files / PBAllocate / Why was this archived? < prev   
Encoding:
Text File  |  2000-09-28  |  803 b   |  21 lines  |  [TEXT/ttxt]

  1. Why Was This Archived?
  2.  
  3. This sample was archived because no one really understands the point of it.  Moreover, PBAllocate is not a very useful system call, as explained by a current File Manager engineer:
  4.  
  5. >I rarely use Allocate because the space it
  6. >reserves for a file is only reserved until the file is
  7. >flushed, closed, or the volume is flushed. SetEOF allocates
  8. >space the same way as Allocate, but since EOF is changed to
  9. >include the allocated space, it can't be taken back.
  10. >
  11. >AllocContig is little different because it either allocates
  12. >contiguous or fails. Where I use AllocContig, I immediately
  13. >follow up with a SetEOF to grab the space -- hopefully
  14. >before something calls FlushVolAsync (the window is rather
  15. >small).
  16.  
  17. Quinn "The Eskimo!"
  18. Worldwide Developer Technical Support
  19.  
  20. 18 Jun 1999
  21.